Send feedback on this topic.
Teradata.Client.Provider
CopyTo(TdParameter[],Int32) Method



Teradata.Client.Provider Namespace > TdParameterCollection Class > CopyTo Method : CopyTo(TdParameter[],Int32) Method
The target one-dimensional array.
The zero-based index in the array where copying begins.
Copies the elements of TdParameterCollection to the specified array.
Syntax
'Declaration
 
Public Overloads Sub CopyTo( _
   ByVal array() As TdParameter, _
   ByVal index As Integer _
) 
'Usage
 
Dim instance As TdParameterCollection
Dim array() As TdParameter
Dim index As Integer
 
instance.CopyTo(array, index)
public void CopyTo( 
   TdParameter[] array,
   int index
)
public:
void CopyTo( 
   array<TdParameter^>^ array,
   int index
) 

Parameters

array
The target one-dimensional array.
index
The zero-based index in the array where copying begins.
Exceptions
ExceptionDescription
Can be thrown by one of the following errors: 1)array is not one-dimensional, 2)index is equal to or greater than the length of the array, or 3)the number of elements in the TdParameterCollection is greater than the available space from index to the end of the destination array.
array is null
index is less than zero.
Remarks
This is a shallow copy. The array elements will point to the same object (TdParameter objects in TdParameterCollection).
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdParameterCollection Class
TdParameterCollection Members
Overload List
TdParameter Class